package com.sw.bbs.board.vo.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sw.bbs.common.constant.BBSConstant;
import com.sw.bbs.common.vo.PageRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@ApiModel
@Data
public class QueryCommonRequest extends PageRequest {

    @ApiModelProperty("关键词")
    private String keyword;

    @ApiModelProperty("查询开始时间")
    @DateTimeFormat(pattern = BBSConstant.DATE_FORMAT)
    @JsonFormat(pattern = BBSConstant.DATE_FORMAT,timezone = BBSConstant.DATE_TIMEZONE)
    private Date startTime;

    @ApiModelProperty("查询结束时间")
    @DateTimeFormat(pattern = BBSConstant.DATE_FORMAT)
    @JsonFormat(pattern = BBSConstant.DATE_FORMAT,timezone = BBSConstant.DATE_TIMEZONE)
    private Date endTime;

}
